#include "ScnsKey.c.h"

#if defined(SCNS_KEY_ENABLE)&&SCNS_KEY_ENABLE==1

#include "ScnsMenu.h"
#include "ScnsTm1638.h"
#include "ScnsBeep.h"

static void callback(ScnsKeyMsg key)
{
    if(key.status==SCNS_KEY_PRESS_DOWN)
        scnsBeepAdd("S");
}

const ScnsBspKeyConfig scnsBspKeyConfig[SCNS_KEY_MAX]={
    {.name="S1",.callbacks=(void (*[])(ScnsKeyMsg)){NULL}},
    {.name="S2",.callbacks=(void (*[])(ScnsKeyMsg)){NULL}},
    {.name="S3",.callbacks=(void (*[])(ScnsKeyMsg)){NULL}},
    {.name="S4",.callbacks=(void (*[])(ScnsKeyMsg)){callback,NULL}},
};

#endif